<template>
    <div>
        <div v-for="live in player.role.result.lives">
            {{ live.role }} : {{ live.keep === 0 ? '获胜' : formatTime(live.keep) }}
        </div>
    </div>
</template>

<script>
    export default {
        props: {
            player: Object
        },
        name: "result",
        methods: {
            formatTime(time) {
                let m = Math.floor(time / 60000);
                let s = Math.floor(time / 1000) % 60;
                return m + ':' + (s < 10 ? '0' + s : s);
            }
        }
    }
</script>

<style scoped>

</style>
